/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.tthdhm.truyvetduongdi.util;

import org.apache.log4j.Logger;

/**
 *
 * @author BPT
 */
public class LogSystem {

    /**
     * log property.
     */
    private static Logger log;
    private static LogSystem INSTANCE;

    /**
     * @constructor
     */
    private LogSystem() {
    }

    /**
     * @return object have type LogSystem
     */
    public static LogSystem getInstance() {
        if (INSTANCE == null) {
            INSTANCE = new LogSystem();
            log = Logger.getLogger(Constants.BLANK_VALUE);
        }
        return INSTANCE;
    }

    /**
     * @param obj
     * 				information of logger.
     */
    public void info(Object obj) {
        log.info(obj);
    }

    /**
     * @param obj
     * information of error
     */
    public void error(Object obj) {
        log.error(obj);
    }
}
